package com.wxx;

/**
 * @author: Jetwang
 * @date: 2022/3/20 19:54
 * @description: ArrayDemo
 * @version: 1.0
 */
public class ArrayDemo {
    public static void main(String[] args) {
        // 数组需要提前声明大小
        int[] arr = new int[10];
        for (int i = 0; i < arr.length; i++) {
            arr[i] = i;
        }

        int[] scores = new int[]{60, 70, 80};
        for (int i = 0; i < scores.length; i++) {
            System.out.println(scores[i]);
        }

        for (int score : scores) {
            System.out.println(score);
        }


    }
}
